<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%@page import="sist.core.board.BoardDao"%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<%
	int no = Integer.parseInt(request.getParameter("no"));
	String job = request.getParameter("job");
	String current = request.getParameter("pass");
	
	String dbPass = (String)BoardDao.getPassWord(no);
	if(dbPass.trim().equals(current)){
		if(job.equals("delete")){
			response.sendRedirect("delete.jsp?no="+no);	
		}else if(job.equals("modify")){
			response.sendRedirect("modify.jsp?no="+no);	
		}
	}else{
		response.sendRedirect("passWordCheck.jsp?no="+no+"&job="+job);	
	}
	
	out.print("current , dbpass : "+current+" , "+dbPass);
%>
</body>
</html>